package com.zbs.framework.common.utils.email;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author: Zbs
 * @createTime: 2020/12/14 14:19
 */
@Configuration
@ConfigurationProperties(prefix = "spring.mail")
public class MailConfig {

    public static String from;

    public static String host;

    public static Integer port;

    public static String username;

    public static String password;

    public static boolean sslEnable = false;

    public void setFrom(String from) {
        MailConfig.from = from;
    }

    public void setHost(String host) {
        MailConfig.host = host;
    }

    public void setPort(Integer port) {
        MailConfig.port = port;
    }

    public void setUsername(String username) {
        MailConfig.username = username;
    }

    public void setPassword(String password) {
        MailConfig.password = password;
    }

    public void setSslEnable(boolean sslEnable) {
        MailConfig.sslEnable = sslEnable;
    }
}
